package com.springboot.springautowired.circularReference.singletonModel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 单例模式下的循环依赖
 * @author mac
 * @date 2021/9/15 10:20 上午
 */
@Service
public class TestService1 {
    @Autowired
    private TestService2 testService2;

    @Async
    public void test1(){
        testService2.test2();
    }
}
